package com.jx.medical.mapper;

import com.jx.medical.pojo.Buyer;
import com.jx.medical.pojo.Medicine;
import com.jx.medical.pojo.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author jx
 * @date Created on 2020/12/3  16:05
 **/
@Mapper
public interface UserMapper {
    User findUser(User user);

    int registUser(User user);

    User getUserByAcc(String acc);

    int registBuyer(Buyer buyer);

    Buyer getBuyerById(int buyerId);

    int deleteUser(String acc);

    int deleteBuyer(int buyerId);

    int updateBuyer(Buyer buyer);


}
